package com.spring.demo.core.entity;

import java.io.Serializable;

/**
 * 邮件发送中的附件
 * 
 * @author sean
 * 
 */
public class Attachment implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private byte[] data;
	private String filename;
	private String mimeType;
	private boolean inline;

	public Attachment() {
	}

	public Attachment(byte[] data, String filename, String mimeType,
			boolean inline) {
		super();
		this.data = data;
		this.filename = filename;
		this.mimeType = mimeType;
		this.inline = inline;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public boolean isInline() {
		return inline;
	}

	public void setInline(boolean inline) {
		this.inline = inline;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

}
